/*
 * main.c
 *
 *  Created on: 2011-11-6
 *      Author: root
 */

int main(int argc, char **argv) {

	int i,j,k;
	for(i = 1; i<=9; i++)
		for(j = 0; j<=9; j++)
			for(k = 0; k<=9; k++)
			{
				if(i*100+j*10+k == i*i*i+j*j*j + k*k*k)
				{
					printf("%d\n",i*100+j*10+k);
				}
			}

	return 0;

}

